gtktreeview: don't handle extra mouse buttons
authorNelson Benitez Leon <nbenitezl@gmail.com>
Tue, 3 Apr 2012 15:33:15 +0000 (17:33 +0200)
committerNelson Benítez León <nbenitezl+gnome@gmail.com>
Wed, 4 Apr 2012 14:26:57 +0000 (16:26 +0200)
Don't handle mouse button events greater than 5 so
they can bubble up to be used by the application.

This was causing nautilus list view to not go forward
and backwards when pressing the extra mouse buttons
designated for that.

Fixes bug 673441

Signed-off-by: Nelson Benitez Leon <nbenitezl@gmail.com>
gtk/gtktreeview.c

index b9b90ab0eb250ed7fcf9c4889a6b62797e9cbec8..c3ec3d6e8abf5a21a14e21d1fe8ccbde33a6741f 100644 (file)
@@ -2876,6 +2876,10 @@ gtk_tree_view_button_press (GtkWidget      *widget,
                        "horizontal-separator", &horizontal_separator,
                        NULL);
 
+  /* Don't handle extra mouse buttons events, let them bubble up */
+  if (event->button > 5)
+    return FALSE;
   /* Because grab_focus can cause reentrancy, we delay grab_focus until after
    * we're done handling the button press.
    */